Part Number Hot Search : 
XB0488B 1S510 2060CT TA8464 B59020 5962F PN3146A FA10313
Product Description
Full Text Search
 

To Download ELM409P Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > connection diagram pdip and soic (top view) v dd v ss 1 2 3 4 8 7 6 5 versatile debounce circuit the elm409 is digital filter circuit that is used to interface mechanical contacts to electronic circuits. all mechanical contacts, whether from switches, relays, etc. will have inherent ?ounce?when they make or break a connection. when that contact is used for the electrical input to a digital circuit, the bounces can easily be incorrectly interpreted as multiple inputs. the elm409 contains all of the logic that is typically required to remove the bounce from such signals, and provide a signal that has only one transition. in addition to providing the standard debounce function, the elm409 may also be configured for other useful functions such as generating pulses or alternating output levels on signal transitions. no external components are needed for the operation of the elm409, as all timing and logic functions are performed internally. standard and extra long debounce times schmitt input provides hysteresis complementary circuit outputs needs no external timing components low power cmos design - typically 1 ma at 5v wide supply range - 3.0 to 5.5 volt operation high current drive outputs pushbutton interface for logic circuits limit switch monitoring time delay generation power on sequencing in out a description applications block diagram 1 of 8 features elm409dsa b c elm409 out 6 7 5 in out 500 msec debounce 2 3 4 c a b control logic out 25 msec debounce edge detectors edge detectors pulse generator toggle circuit
hysteresis means that very slow moving or noisy signals can be accommodated by the elm409 without needing the signal to be preconditioned by any external circuitry. (a standard cmos input should never have a slowly varying signal applied, as it may cause excessive currents to flow internally, but a schmitt input circuit does not have this limitation.) out (pin 7) and out (pin 6) the ?ebounced?and processed signal is output on pin 7, while the complement of this signal is output on pin 6. these are high current cmos drivers, so will interface to virtually all of the common digital logic families. v ss (pin 8) circuit common is connected to this pin. this should be the most negative point in the circuit. elm409 elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > pin descriptions these integrated circuits are available in either the 300 mil plastic dip format, or in the 208 mil soic surface mount type of package. to order, add the appropriate suffix to the part number: 300 mil plastic dip............................... ELM409P 208 mil soic..................................... elm409sm 2 of 8 all rights reserved. copyright 2009 by elm electronics inc. every effort is made to verify the accuracy of information provided in this document, but no representation or warranty can be given and no liability assumed by elm electronics with respect to the accuracy and/or use of any products or information described in this document. elm electronics will not be responsible for any patent infringements arising from the use of these products or information, and does not authorize or warrant the use of any elm electronics product in life support devices and/or systems. elm electronics reserves the right to make changes to the device(s) described in this document in order to improve reliability, function, or design. v dd (pin 1) this pin is the positive supply pin, and should always be the most positive point in the circuit. internal circuitry connected to this pin is used to provide power-on reset of the microprocessor, so an external reset signal is not required. refer to the electrical characteristics section for further information. a, b, and c (pins 2, 3, and 4) these three pins modify the behaviour of the elm409, providing eight different configurations. they determine whether the output should follow the input, be a momentary pulse, or toggle the output on each input transition. as well, they can select either a standard 25 msec debounce period, or a longer 500 msec one. the longer period may be useful for some very noisy interfaces, or for situations that need a slight delay. see the ?lm409 operation section for more details on these options. in (pin 5) the signal that is to be processed is applied to this pin. before the signal is ?ebounced? it is passed through a schmitt trigger - a special buffer circuit that has hysteresis in its gain function. the use of elm409dsa ordering information
elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > elm409 electrical characteristics absolute maximum ratings storage temperature....................... -65? to +150? ambient temperature with power applied.................................... -40? to +85? voltage on v dd with respect to v ss ............ 0 to +7.5v voltage on any other pin with respect to v ss ........................... -0.6v to (v dd + 0.6v) note: stresses beyond those listed here will likely damage the device. these values are given as a design guideline only. the ability to operate to these levels is neither inferred nor recommended. 3 of 8 all values are for operation at 25? and a 5v supply, unless otherwise noted. for further information, refer to note 1 below. characteristic minimum typical maximum conditions units supply voltage, v dd 3.0 5.0 5.5 v v dd rate of rise 0.05 v/ms average supply current, i dd 1.0 2.4 ma see note 3 notes: 1. this integrated circuit is produced using one of the microchip technology inc.? pic12c5xx products as the core embedded microcontroller. for further device specifications, and possibly clarification of those given, please refer to the appropriate microchip documentation. 2. this spec must be met in order to ensure that a correct power on reset occurs. it is quite easily achieved using most common types of supplies, but may be violated if one uses a slowly varying supply voltage, as may be obtained through direct connection to solar cells, or some charge pump circuits. 3. device only. does not include any current supplied to external circuits. 4. the elm409 uses an internal rc oscillator for the timing. this oscillator typically maintains an accuracy of 2% over the allowed temperature and voltage range. long debounce time 500 output pulse width msec 50 output low voltage v output high voltage v current (sink) = 10 ma current (source) = 10 ma see note 2 elm409dsa standard debounce time 25 input (pin 5) schmitt trigger thresholds rising v v v v v dd = 5.0v v dd = 3.0v falling rising falling input (pin 5) schmitt trigger thresholds msec msec see note 4 see note 4 see note 4 0.3 4.2 1.6 1.0 2.9 1.5 4.0 1.0 0.6 2.4
about contact bounce 4 of 8 the circuit of figure 1 below shows one possible connection that might be made between a mechanical switch and a digital circuit. the pushbutton could be used to summon an elevator, or to turn a circuit on, or it could be a switch that is operated by foot pressure to count the number of people entering a room. it does not matter what the function is actually - in every case we simply need a clean signal to present to the logic. normally, the pushbutton will not be pressed, so its contacts will be open, and the digital circuit will ?ee elm409 elm409dsa elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > only a resistor to circuit common (a ?ow ?nput). when the pushbutton is pressed, the contacts close and the digital circuit will be connected to the positive power supply, or a logic ?igh? it should be a simple matter of processing this signal, but it is often not. the oscilloscope trace of figure 2 shows the voltage that the digital circuit of figure 1 might see when the pushbutton is pressed. it is an actual trace taken from our pushbutton tests (and shows the output from the elm409 in the lower trace). note that the signal alternates between high and low several times, bouncing between the levels. this bounce occurs when the moving contacts of the switch meet the stationary contacts, and is simply due to the physics of the two parts meeting one another. the bounces do not seem to have a defining characteristic that would allow the behaviour to be predicted and filtered - it is basically digital noise. if this signal were to be input to the digital circuit as it is, it would be seen as at least two switch presses (and maybe more). note that when the contacts open, there is a similar problem, as shown in figure 3: seeing multiple inputs for a single switch press is certainly not what is intended by any circuit, and it needs to be addressed. the technique of ?leaning up such a signal is commonly known as ?ebouncing? and that is what the elm409 does. it simply waits until the bounces stop, then waits an additional time (the debounce time) to be sure that there are no more bounces likely to occur. choosing an appropriate debounce time is a design choice, but 25 msec seems to be a good value. there are several analog methods of performing the ?ebouncing?of a signal, many that work extremely well, but we do not think that any work better than the elm409. figure 1. pushbutton input to digital logic figure 3. bounce on switch opening digital circuit figure 2. bounce on switch closing
5 of 8 the circuit of figure 4 shows how the elm409 would typically be connected to debounce the signal of figure 1. other than powering the elm409, all that is needed is to connect the options pins (a, b and c) to v ss (providing low levels on all three), connect the noisy switch signal to the input pin, and then connect the elm409 output pin to the digital circuit. the output of the elm409 in figure 4 would appear as shown in the ?cope traces of figures 2 and 3 (the lower traces). there is a slight delay (25 msec) due to the debounce period, but otherwise, the signal appears as you would expect from an ?deal?switch. the elm409 is capable of performing several other functions on the input signal - it can do more that just debounce the signal. for example, it can provide a change in output on the signal edges (transitions from a low to a high level, or from a high to a low level), and it can alternate (toggle) the output on each occurrence of an edge. each of these possibilities are selected by changing the logic levels at the a, b and c pins. the eight combinations are described in table 1 below, and also appear pictorially on the next page. elm409 elm409dsa elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > figure 4. debouncing the pushbutton elm409 operation digital circuit 1 2 3 4 8 7 6 5 409 a b c debounce period function notes follows input pulse on rising edge pulse on falling edge toggle on edge 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 25 msec 25 msec 25 msec 25 msec 25 msec 500 msec 500 msec 500 msec standard contact debounce for very noisy circuits output pulse is 50 msec wide changes on input h -> l changes on input l -> h output pulse is 50 msec wide output pulse is 50 msec wide output pulse is 50 msec wide table 1. elm409 options
elm409 operation (continued) 6 of 8 elm409 elm409dsa elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > figure 5. elm409 timing diagrams the following diagrams provide a pictorial view of each of the eight elm409 options: input (pin 5) output (pin 7) abc = 000 or 001 25 msec or 500 msec abc = 010 or 011 25 msec or 500 msec abc = 100 or 101 abc = 110 25 msec or 500 msec abc = 111 25 msec or 500 msec 50 msec 50 msec 25 msec or 500 msec output (pin 7) output (pin 7) output (pin 7) output (pin 7)
example applications 7 of 8 this section shows several different ways to use the elm409. the first example (figure 6) is actually a variation of the circuit shown in figure 4. figure 6 adds two components that should always be considered in every elm409 design. the first is a supply bypass capacitor. digital circuits will often have transients (?pikes? in their current flow due to the internal switching process. by adding a capacitor very close to the ic, much of the current for these spikes can be supplied by the capacitor rather than through the (inductive) leads from the supply. the net result is that there will be less noise generated at the supply by the elm409. a value of 0.01? works well. the other component that was added in figure 6 is a series resistor at the input (pin 5). this resistor is recommended when the electrical contact or switch is any more than a few feet away from the elm409 ic. placing the resistor in series with the input serves to limit induced currents that might otherwise damage the elm409. a minimum value of a few hundred ohms is recommended, and a larger value (such as the 4.7k w shown), is preferred. the next example (shown in figure 7) has the pushbutton connected between circuit common and the input, rather than from the positive supply. an arrow is shown at the output, symbolizing the output signal, which is then connected as appropriate. the one difference with this circuit is that the input voltage will go from a high level to a low level when the switch is pressed. to accommodate this, the options pins have been set to 110, providing a toggle function that changes state on each high to low transition. the circuit will provide alternating high and low outputs which change state each time the switch is pressed. if the options pins had been set to 000 (ie all tied low), the circuit would provide an output that follows the switch presses, but might seem inverted. that is, pin 7 would normally be at a high level, and would go to a low level when the switch is pressed. if an output that is normally low and goes high when the switch is pressed is required, simply use pin 6 for the output rather than pin 7. this section concludes on page 8, with three more example circuits and a short description of each. elm409 elm409dsa elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > figure 6. debouncing the pushbutton revisited 0.01? 4.7k w digital circuit 1 2 3 4 8 7 6 5 409 figure 7. toggle circuit with the pushbutton to common 0.01? 4.7k w 1 2 3 4 8 7 6 5 409
example applications (continued) 8 of 8 elm409 elm409dsa elm electronics ?circuits for the hobbyist < http://www.elmelectronics.com/ > 1 2 3 4 8 7 6 5 409 the following are a a few circuits that use the elm409, but may not be what comes to mind when you think of debouncing. they take advantage of the internal timers in the elm409 as well as the ability to change options while the circuit is operational, to provide some interesting functions. the first (figure 8) is a circuit that simply connects the debounce input to the positive supply. with the debounce period set for 500 msec, the output will initially be low, then go high 500 msec after the power is turned on. this delay may be useful if trying to sequence the power to different circuits, or enable the outputs (audio power amplifiers often need this delay to allow the supplies to settle before connecting the amplifier outputs to the speakers). figure 9 shows a circuit that provides a single 50 msec wide pulse at the output, 25 msec after power has been applied. it relies on the fact that the elm409? pin 7 output is always at a low level on power up (and pin 6 is always high), so the initial options setting will then be 010, for a 50 msec pulse after a 25 msec debounce period. once the output pulse begins, however, the connection from pin 7 to pin 4 causes the options to change to 011, giving a debounce period of 500 msec (which can never be met by a 50 msec pulse). the output remains low from that time on. this circuit works because the option pins are always read just before a 25 msec debounce period is about to expire (allowing for changes ?n the fly?. in this case, the pulse output is at its midpoint when the pins are read, so the new latched setting becomes 011, and the debounce period changes to 500 msec. as the pulse never lasts that long, it is ignored by the 500 msec debounce circuit, and the output never changes again. the final circuit also uses the output to modify the input, and the debounce period. the result is a series of 25 msec pulses with 500 msec gaps in between, that continually repeat. low frequency oscillators such as this may be useful on the test bench, or it may simply be used to drive an led in order to attract attention. these are just a few of the many applications possible with the elm409?enjoy! 1 2 3 4 8 7 6 5 409 1 2 3 4 8 7 6 5 409 figure 8. power on delay figure 9. power on pulse figure 10. low frequency oscillator


▲Up To Search▲   

 
Price & Availability of ELM409P

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X